<div class="main-widget">
	<div class="item-bd pt0">
    	<{foreach item=list key=num from=$blog}>
        <div class="sns-item"<{if !$num}>style="padding-top:5px"<{/if}> >
            <div class="sns-wrap">
                <div class="sns-text"> <p class="sns-title"><a target="_blank" href="shop.php?uid=<{$list.member_id}>"><{$list.member_name}></a> : <span><{$list.title}></span></p></div>
                <{if $list.original_id }>
                <div class="quote-wrap">
                     <{if $list.original_status==1}>原文已删除<{else}>
                     <div class="sns-text"><p class="sns-title"><a target="_blank" href="home.php?uid=<{$list.ouid}>"><{$list.ouser}></a> : <span><{$list.otitle}></span></p></div>
                    <{$list.ocontent}>
                    <{/if}>
                </div>
                <{else}>
                	<{$list.content}>
                <{/if}>
                <div class="sns-extra">
                    <span class="sns-time"><{$list.addtime|date_format}></span>
                    <span class="sns-action">
                        <span><a data-param="{&quot;bid&quot;:&quot;<{$list.id}>&quot;}" data_type="sns_forward" href="javascript:void(0);">转发</a></span>
                    </span>
                </div>
              	<div id="forward_<{$list.id}>" style="display:none;">
                <div class="forward">
                <form action="" method="post" id="forwardform_<{$list.id}>">
                <input type="hidden" name="submit" value="forward">
                <input type="hidden" name="forwardid" value="<{$list.id}>">
                <textarea name="forwardcontent" class="ftextarea" id="content_forward<{$list.id}>" resize="none"></textarea>
                <span class="error"></span>
                <p>
                <span id="forwardcharcount<{$list.id}>"></span>
                <span style="float:right"><input type="submit" value="转发" class="button"></span>
                </p>
                 </form>
                </form>
                </div>
                </div>
            </div>
        </div>
        <{/foreach}>
    </div>
</div>
<script type="text/javascript" src="<{$config.weburl}>/script/dialog/dialog.js" id="dialog_js"></script>
<script>
$("[data_type='sns_forward']").live('click',function(){
	var data = $(this).attr('data-param');
	eval("data = "+data);
	ajax_form("forward_form", '转发', '<{$config.weburl}>/main.php?m=sns&s=sns&op=forward&bid='+data.bid, 500);
	return false;
});
</script>